/*********************************************************
          File Name:9.14.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Wed 17 Feb 2016 09:58:33 PM CST
**********************************************************/

#include <iostream>
#include <vector>
#include <list>

// assign list<const char *> to vector<string>

int main()
{
    using namespace std;
    list<const char *> l{"this", "is", "a", "test"};
    vector<string> v;

    v.assign(l.cbegin(), l.cend());

    for(const auto &x: v)
        cout << x << " ";
    cout << endl;
    return 0;
}
